<?php $this->load->view('layout/jingqu/header');?>
<div class="order-page screen-width clearfix">
    <div class="order-left">
        <?php $this->load->view('layout/account_left');?>
    </div>
    <div class="order-right">
         <div class="your-choice">
            <h5>站内信</h5>
            <ul class="your-letter your-count clearfix choice-ul">
                <li class="active">
                    <a href="javascript:;">收件箱</a>
                </li>
                <li>
                    <a href="<?php echo site_url('mailbox/sendMessage');?>">已发送</a>
                </li>
                <li class="letter-write">
                    <a href="<?php echo site_url('mailbox/writeMessage');?>">写信</a>
                </li>
            </ul>
        </div>
        <?php if ($all_rows > 0) :?>
            <table class="letter-table table">
                <thead>
                    <tr>
                        <th class="letter-send">发件人</th>
                        <th class="letter-theme">主题</th>
                        <th class="letter-date">时间</th>
                        <th class="letter-state">状态</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($page_list->result() as $item):?>
                        <tr>
                            <td>
                                <p class="letter-send">
                                    <?php echo $item->fname;?>
                                </p>
                            </td>
                            <td>
                                <a href="<?php echo site_url('mailbox/receiveDetail/'.$item->id);?>" class="letter-theme">
                                   <?php echo $item->title;?>
                               </a>
                            </td>
                            <td><?php echo $item->ftime;?></td>
                            <td>
                                <?php if ($item->attribute==0) : ?>
                                    <p class="not-read">未读</p>
                                <?php else : ?>
                                    <p>已读</p>
                                <?php endif ?>
                            </td>
                        </tr>
                    <?php endforeach;?>
                </tbody>
            </table>
            <?php $this->load->view('layout/pagination') ?>
        <?php else: ?>
            <div class="no-data">
                <img src="skins/images/panda.jpg"/>
                <p>没有搜索到结果</p>
            </div>
        <?php endif;?>
    </div>
</div>
<?php $this->load->view('layout/jingqu/footer') ?>